﻿<%@ Page Language="C#" MasterPageFile="~/admin/TeampAdmin.Master" AutoEventWireup="true" CodeBehind="QLNguoiDung.aspx.cs" Inherits="CungUngXayDung.admin.QLNguoiDung" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PageTittle" Runat="Server">
    QUẢN LÝ NGƯỜI DÙNG
<hr>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
        
        <br/>
        <table align="left" width="25px">
        <tr> <td>
        <asp:Button id = "btnThem" runat = "server"  Text = "Thêm" 
            onclick="btnThem_Click" Width="105px" />
        </td> </tr>
        </table>
        <br>
        <br />                
        <center>        
            <asp:GridView ID="GridView1" runat="server" 
            AutoGenerateColumns="False" EnableModelValidation="True" AllowPaging="True" 
                onpageindexchanging="GridView1_PageIndexChanging" PageSize="6" 
                onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                HorizontalAlign="Center" BorderColor="Black" CaptionAlign="Bottom">
        <Columns>
            <asp:BoundField DataField="MaNguoiDung" HeaderText="Mã người dùng" />
            <asp:BoundField DataField="TenNguoiDung" HeaderText="Tên người dùng" />
            <asp:BoundField DataField="GioiTinh" HeaderText="Giới tính" />
            <asp:BoundField DataField="CMND" HeaderText="CMND" />
            <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" />
            <asp:BoundField DataField="DienThoai" HeaderText="Điện Thoại" />
            <asp:BoundField DataField="Email" HeaderText="Email" />
            <asp:BoundField DataField="TenDangNhap" HeaderText="Tên đăng nhập" />
            <asp:BoundField DataField="MatKhau" HeaderText="Mật khẩu" />
             <asp:BoundField DataField="MaLoaiNguoiDung" HeaderText="Mã loại người dùng" />
            
            
            <asp:CommandField EditText="Sửa" ShowEditButton="True" />
            <asp:CommandField CancelText="Thoát" DeleteText="Xóa" ShowDeleteButton="True" />
        </Columns>
        </asp:GridView></center>
    </div>
</asp:Content>